package com.ruoyi.qywx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.qywx.mapper.SysQywxChatdataMapper;
import com.ruoyi.qywx.domain.SysQywxChatdata;
import com.ruoyi.qywx.service.ISysQywxChatdataService;

/**
 * 企业微信Service业务层处理
 *
 * @author yaolei
 * @date 2024-06-22
 */
@Service
public class SysQywxChatdataServiceImpl implements ISysQywxChatdataService
{
    @Autowired
    private SysQywxChatdataMapper sysQywxChatdataMapper;

    /**
     * 查询企业微信
     *
     * @param seq 企业微信主键
     * @return 企业微信
     */
    @Override
    public SysQywxChatdata selectSysQywxChatdataBySeq(Long seq)
    {
        return sysQywxChatdataMapper.selectSysQywxChatdataBySeq(seq);
    }

    /**
     * 查询企业微信列表
     *
     * @param sysQywxChatdata 企业微信
     * @return 企业微信
     */
    @Override
    public List<SysQywxChatdata> selectSysQywxChatdataList(SysQywxChatdata sysQywxChatdata)
    {
        return sysQywxChatdataMapper.selectSysQywxChatdataList(sysQywxChatdata);
    }

    @Override
    public List<SysQywxChatdata> selectSysQywxChatdataListTop1(SysQywxChatdata sysQywxChatdata)
    {
        return sysQywxChatdataMapper.selectSysQywxChatdataListTop1(sysQywxChatdata);
    }
    /**
     * 新增企业微信
     *
     * @param sysQywxChatdata 企业微信
     * @return 结果
     */
    @Override
    public int insertSysQywxChatdata(SysQywxChatdata sysQywxChatdata)
    {
        return sysQywxChatdataMapper.insertSysQywxChatdata(sysQywxChatdata);
    }

    /**
     * 修改企业微信
     *
     * @param sysQywxChatdata 企业微信
     * @return 结果
     */
    @Override
    public int updateSysQywxChatdata(SysQywxChatdata sysQywxChatdata)
    {
        return sysQywxChatdataMapper.updateSysQywxChatdata(sysQywxChatdata);
    }

    /**
     * 批量删除企业微信
     *
     * @param seqs 需要删除的企业微信主键
     * @return 结果
     */
    @Override
    public int deleteSysQywxChatdataBySeqs(Long[] seqs)
    {
        return sysQywxChatdataMapper.deleteSysQywxChatdataBySeqs(seqs);
    }

    /**
     * 删除企业微信信息
     *
     * @param seq 企业微信主键
     * @return 结果
     */
    @Override
    public int deleteSysQywxChatdataBySeq(Long seq)
    {
        return sysQywxChatdataMapper.deleteSysQywxChatdataBySeq(seq);
    }
}
